package com.dashunzi.yueyutianqi.pager;

import android.app.Activity;
import android.graphics.Color;
import android.view.Gravity;
import android.widget.TextView;

import com.dashunzi.yueyutianqi.base.BasePager;


/**
 * Created by Administrator on 2016/3/10 0010.
 * 作者：大顺子
 */
public class busPager extends BasePager {
    public busPager(Activity activity) {
        super(activity);
    }
    @Override
    public void initData() {
        flContent.removeAllViews();
        TextView text = new TextView(mActivity);
        text.setText("汽车");
        text.setTextColor(Color.RED);
        text.setTextSize(25);
        text.setGravity(Gravity.CENTER);
        //向FrameLayout中动态添加布局
        flContent.addView(text);
    }
}
